﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using MODEL;
using System.Data;
namespace BLL
{
    public class BllHistoryStockDetail
    {
        public int IsExist(int dicid, int historyid)
        {
            return new DalHistoryStockDetail().IsExist(dicid, historyid);
        }
        public List<historystockdetail> GetAllListByHisId(int hisId)
        {
            return new DalHistoryStockDetail().GetAllListByHisId(hisId);
        }
        public DataTable GetTablesByHisId(int hisId)
        {
            return new DalHistoryStockDetail().GetTablesByHisId(hisId);
        }

        public int Insert(historystockdetail hsd)
        {
            return new DalHistoryStockDetail().Insert(hsd);
        }

        public int Delete(historystockdetail hisdetails)
        {
            return new DalHistoryStockDetail().Delete(hisdetails);
        }

        public int Update(historystockdetail hisdetails)
        {
            return new DalHistoryStockDetail().Update(hisdetails);
        }
        
        public historystockdetail GetObjectById(int hbid) {
            return new DalHistoryStockDetail().GetObjectById(hbid);
        }
    }
}
